package com.sxpi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.common.result.Result;
import com.sxpi.model.entity.Bookings;
import com.sxpi.model.page.PageResult;
import com.sxpi.model.vo.BookingListVO;
import com.sxpi.model.vo.BookingsVo;

import java.util.List;
import java.util.Map;

/**
 * @author happy
 * @create 2024-10-29-{TIME}
 */
public interface BookingsService extends IService<Bookings> {
    

    Boolean submitBooking(Bookings bookings);


    Result<PageResult<BookingsVo>> getBookingList(Long userId, Integer pageNo, Integer pageSize, Integer status, Integer isRelease);

    Result<Map<String,Object>> getBookingByOrders(String orders);

    Result<BookingsVo> release(Long userId, Integer isRelease);
}